import 'package:safetymonitor/app/data/common/choice_bean.dart';
import 'package:safetymonitor/generated/json/base/json_field.dart';
import 'package:safetymonitor/generated/json/get_all_device_type_entity.g.dart';
import 'dart:convert';
export 'package:safetymonitor/generated/json/get_all_device_type_entity.g.dart';

@JsonSerializable()
class GetAllDeviceTypeEntity implements ChoiceBean{
	String? createTime = '';
	String? updateTime = '';
	String? creator = '';
	String? updater = '';
	bool? deleted = false;
	int? id = 0;
	int? companyId = 0;
	String? companyName = '';
	int? systemId = 0;
	String? systemName = '';
	int? systemType = 0;
	String? monitorCode = '';
	String? monitorName = '';
	String? deviceCode = '';
	String? deviceName = '';
	int? tenantId = 0;
	int? deviceStatus = 0;
	String? systemCode = '';
	int? onlineStatus = 0;
	String? disposalTime = '';
	String? alarmTime = '';
	/// 是否选中
	bool isChecked = false;
	/// 是否展开
	bool? isExpand = false;
	GetAllDeviceTypeEntity();

	factory GetAllDeviceTypeEntity.fromJson(Map<String, dynamic> json) => $GetAllDeviceTypeEntityFromJson(json);

	Map<String, dynamic> toJson() => $GetAllDeviceTypeEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}

	@override
	String getId() {
		return '$systemId-$monitorCode';
	}

	@override
	bool getIsChecked() {
		return isChecked;
	}

	@override
	String getShowName() {
		return '$systemName-$monitorName';
	}

	@override
	setIsChecked(bool isChecked) {
		this.isChecked = isChecked;
	}
}
